﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="qf_cms.admin._default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>CMS Admin</title>
	<link href="../styles/Site.css" rel="stylesheet" type="text/css" />
	<script src="../scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
	<style type="text/css">
		body{ padding-top:30px;}
		fieldset{ width:400px; height:200px; margin-top: 20px;margin-right: auto;margin-left: auto; color:#808080;}
		legend{ padding:3px; font-weight:bold;}		
        #loginTable{margin-right: auto;margin-left: auto; margin-top:10px;}
        .loginTxt{ width:160px;} 
        #copyright
        {
            font: 12px Arial,Helvetica,sans-serif;
            color: #767676;
            text-align: center;
            margin-top: 50px;
            padding: 10px 0px;
        }
	</style>
	<script type="text/javascript">
		$(document).ready(function () {
			$("#UserName").focus();

			$("input[name='VerifyCode']").keydown(function (e) {
				if (e.which == 13)
					MySubmit();
			});
		});

		function MySubmit() {
			if ($("#UserName").val().length == 0) {
				alert("用户名不能为空!");
				return;
			}
			if ($("#VerifyCode").val().length == 0) {
				alert("校验码不能为空!");
				return;
			}
			form1.submit();
		}
	</script>
</head>
<body>
    
	<fieldset >
		<legend>CMS Admin V3.01</legend>
	<form id="form1" runat="server">
        <table id="loginTable" cellpadding="5" border="0">
            <tr>
                <td align="right">
                    用户名
                </td>
                <td>
                    <input type="text" class="loginTxt" name="UserName" id="UserName" />
                </td>
            </tr>
            <tr>
                <td align="right">
                    密码
                </td>
                <td>
                    <input type="password" class="loginTxt" name="UserPwd" id="UserPwd" />
                </td>
            </tr>
			<tr>
				<td>
					校验码
				</td>
				<td>
					<input type="text" id="VerifyCode" name="VerifyCode" style="width: 60px;" />&nbsp;<img src="verifyCode.aspx" alt="点击更换图片" onclick="this.src=this.src+'?'" style="cursor: hand;
                vertical-align: bottom;" />
				</td>
			</tr>
            <tr>
                <td>
                </td>
                <td>
                    <input type="button" value=" 登录 " onclick="MySubmit()" />
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td style="color:#ff0000;"><%=tip%>
                </td>
            </tr>
        </table></form>
		</fieldset>
    <div id="copyright">
        &copy; 2010 - 2011 QingFeng Inc, all rights reserved
    </div>
</body>
</html>
